PATH![]() |
![]() ![]() |
OSStatus MPCreateTask (
TaskProc entryPoint,
void *parameter,
ByteCount stackSize,
MPQueueID notifyQueue,
void *terminationParameter1,
void *terminationParameter2,
MPTaskOptions options,
MPTaskID *task);
Tasks are created in the unblocked state, ready for execution. A task can terminate in the following ways:
Task resources (its stack, active timers, internal structures related to the task, and so on) are reclaimed by the system when the task terminates. The task's address space is inherited from the process address space. All existing tasks are terminated when the owning process terminates.